package com.matrix.api.product.dto;

import jakarta.validation.Valid;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 有点甜
 * @since 2025/7/27
 */
@Data
public class ProductDTO {
    @NotNull
    private Long categoryId;
    @NotBlank
    private String name;
    private String imageUrl;
    private String description;
    @NotNull
    @DecimalMin("0.01")
    private BigDecimal basePrice;
    @NotNull
    private Integer status;
    @Valid
    private List<SpecGroupDTO> specs;
}
